package com.xiaozhi.libraryfunction.domain;

import com.xiaozhi.common.annotation.Excel;
import com.xiaozhi.common.annotation.Excel.ColumnType;
import com.xiaozhi.common.core.domain.BaseEntity;
import com.xiaozhi.common.core.domain.entity.SysDept;
import com.xiaozhi.common.core.domain.entity.SysUser;

import java.io.Serializable;
import java.util.Date;

/**
 * 图书借阅表 library_borrow
 *
 * @author xiaozhi
 */
public class LibraryBorrow extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 借阅ID */
    @Excel(name = "借阅序号", cellType = ColumnType.NUMERIC)
    private Long borrowId;

    /** 图书id */
    @Excel(name = "图书id")
    private Long bookId;

    /** 读者id */
    @Excel(name = "读者id")
    private Long userId;

    /** 借书日期 */
    @Excel(name = "借书日期")
    private Date lendDate;

    /** 还书日期 */
    @Excel(name = "还书日期")
    private Date backDate;

    /** 还书类型 */
    @Excel(name = "还书类型") //0正常还书 1破损还书2丢失图书3延迟还书4尚未归还
    private Long backType;

    /** 备注内容 */
    @Excel(name = "备注内容")
    private String exceptRemarks;

    private SysUser user;
    private SysDept dept;

    private LibraryBook libraryBook;

    private LibraryType libraryType;



    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(Long borrowId) {
        this.borrowId = borrowId;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getLendDate() {
        return lendDate;
    }

    public void setLendDate(Date lendDate) {
        this.lendDate = lendDate;
    }

    public Date getBackDate() {
        return backDate;
    }

    public void setBackDate(Date backDate) {
        this.backDate = backDate;
    }

    public Long getBackType() {
        return backType;
    }

    public void setBackType(Long backType) {
        this.backType = backType;
    }

    public String getExceptRemarks() {
        return exceptRemarks;
    }

    public void setExceptRemarks(String exceptRemarks) {
        this.exceptRemarks = exceptRemarks;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public LibraryBook getLibraryBook() {
        return libraryBook;
    }

    public void setLibraryBook(LibraryBook libraryBook) {
        this.libraryBook = libraryBook;
    }

    public LibraryType getLibraryType() {
        return libraryType;
    }

    public void setLibraryType(LibraryType libraryType) {
        this.libraryType = libraryType;
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public LibraryBorrow() {
    }
}
